package org.zk.dubbo_provider.service.impl;

import org.zk.dubbo_provider.dao.ApplyMapper;
import org.zk.entity.Apply;
import org.zk.service.ApplyService;
import com.alibaba.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 申请表 服务实现类
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
@Service(timeout = 10000)
public class ApplyServiceImpl implements ApplyService {

    @Resource
    private ApplyMapper applyMapper;
    @Override
    public int insertApplyUser(Apply apply) {
        return applyMapper.insertUserApply(apply);
    }

    @Override
    public int updataApplyLicense(Apply apply) {
        return applyMapper.updataApplyLicense(apply);
    }

    @Override
    public List<Apply> getApplyTeacher(Map map) {
        return applyMapper.getApplyTeacher(map);
    }

    @Override
    public int getApplyContent(Map map) {
        return applyMapper.getApplyContent(map);
    }

    @Override
    public Apply getApplyById(int applyId) {
        return applyMapper.getApplyById(applyId);
    }

    @Override
    public Apply getAllApplyById(Integer applyId) {
        return applyMapper.getAllApplyById(applyId);
    }

    @Override
    public int updataApplyStateNo(Apply apply)  {
        return applyMapper.updataApplyStateNo(apply);
    }

    @Override
    public int updataApplyStateYes(Apply apply) {
       return applyMapper.updataApplyStateYes(apply);
    }

    @Override
    public Apply selectHaveOrNoHave(Apply apply) {
        return applyMapper.selectHaveOrNoHave(apply);
    }

    @Override
    public List<Apply> selectNoTongGuo(Map map) {
        return applyMapper.selectNoTongGuo(map);
    }

    @Override
    public List<Apply> selectYesTongGuo(Map map) {
        return applyMapper.selectYesTongGuo(map);
    }

    @Override
    public List<Apply> selectNoShenHe(Map map) {
        return applyMapper.selectNoShenHe(map);
    }

    @Override
    public int getApplyContentNoTongGuo(Map map) {
        return applyMapper.getApplyContentNoTongGuo(map);
    }

    @Override
    public int getApplyContentYesTongGuo(Map map) {
        return applyMapper.getApplyContentYesTongGuo(map);
    }

    @Override
    public int getApplyContentNoShenHe(Map map) {
        return applyMapper.getApplyContentNoShenHe(map);
    }

    @Override
    public void delApplyById(int applyId) {
        applyMapper.delApplyById(applyId);
    }


    public ApplyMapper getApplyMapper() {
        return applyMapper;
    }

    public void setApplyMapper(ApplyMapper applyMapper) {
        this.applyMapper = applyMapper;
    }
}
